﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using ModuleDALCore;
using DTO;

namespace DAL
{
	public class CT_PHIEUNHAPDAO:DALBase
	{
		public CT_PHIEUNHAPDAO()
		{
			this.OpenConnect();
		}
		private DataTable dt;
		private string _SpName;

		public string SpName
		{
			get { return "SPCT_PHIEUNHAP"; }
			set { _SpName = value; }
		}

		public DataTable getListCT_PHIEUNHAP()
		{
			dt = new DataTable();
			try
			{
				dt = DBManager.Intance.ExecuteDataTable(SpName, ConvertClassToArray.GetParamName(new CT_PHIEUNHAP(), null), ConvertClassToArray.GetValues(new CT_PHIEUNHAP(), 0));
			}
			catch { return null; }
			return dt;
		}
	}
}
